package com.zillion.certificate.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.zillion.common.annotation.Excel;
import com.zillion.common.core.domain.BaseEntity;

import java.util.Date;

/**
 * 体检健康证对象 health_certificate
 *
 * @author zillion
 * @date 2025-06-16
 */
public class HealthCertificate extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键 */
    private Long id;

    /** 体检姓名 */
    @Excel(name = "体检姓名")
    private String name;

    /** 身份证号 */
    @Excel(name = "身份证号")
    private String idCard;

    /** 头像 */
    @Excel(name = "头像")
    private String avatar;

    /** 是否合格 */
    @Excel(name = "是否合格")
    private Integer qualify;

    /** 体检结果图片 */
    private String tjResult;

    /** 体检结果说明 */
    @Excel(name = "体检结果说明")
    private String resultDesc;

    /** 院区 */
    @Excel(name = "院区")
    private Long deptId;

    /** 预约日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "预约日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date reserveDate;

    /*体检日期*/
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "体检日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date regDate;

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }

    public void setName(String name)
    {
        this.name = name;
    }

    public String getName()
    {
        return name;
    }

    public void setIdCard(String idCard)
    {
        this.idCard = idCard;
    }

    public String getIdCard()
    {
        return idCard;
    }

    public void setAvatar(String avatar)
    {
        this.avatar = avatar;
    }

    public String getAvatar()
    {
        return avatar;
    }

    public Integer getQualify() {
        return qualify;
    }

    public void setQualify(Integer qualify) {
        this.qualify = qualify;
    }

    public String getTjResult() {
        return tjResult;
    }

    public void setTjResult(String tjResult) {
        this.tjResult = tjResult;
    }

    public void setResultDesc(String resultDesc)
    {
        this.resultDesc = resultDesc;
    }

    public String getResultDesc()
    {
        return resultDesc;
    }

    public void setDeptId(Long deptId)
    {
        this.deptId = deptId;
    }

    public Long getDeptId()
    {
        return deptId;
    }

    public Date getReserveDate() {
        return reserveDate;
    }

    public void setReserveDate(Date reserveDate) {
        this.reserveDate = reserveDate;
    }

    public Date getRegDate() {
        return regDate;
    }

    public void setRegDate(Date regDate) {
        this.regDate = regDate;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("name", getName())
                .append("idCard", getIdCard())
                .append("avatar", getAvatar())
                .append("qualify", getQualify())
                .append("tjResult", getTjResult())
                .append("resultDesc", getResultDesc())
                .append("deptId", getDeptId())
                .append("reserveDate", getReserveDate())
                .append("createTime", getCreateTime())
                .append("regDate", getRegDate())
                .toString();
    }
}
